//用来判断job页面  找工作点击事件
var indextype =[
    {"value":1,"text":"全文"},
    {"value":2,"text":"职位"},
    {"value":3,"text":"公司"}
]
$("#resumeSearch #keyword_type").select({
    optionData:indextype,
    css:'indexOptions',
    offset:Array(0,1)
});
//行业
option_industry.unshift({"text": "行业不限", "value": ''});
trade1 = $("#trade").select({
    optionData:option_industry,//菜单选项数据
    callback:function(val,text){//选择后的动作

    }
});
//工作年限
option_work_year.unshift({"text": "工作不限", "value": ''});
work_year=$("#work_year").select({
    optionData:option_work_year,//菜单选项数据
    callback:function(val,text){
        var exl="?";
        if(work_year_url.indexOf("?") > 0 ){
            exl='&';
        }
        location.href=work_year_url+exl+'work_year='+val;
    }
});
//学历要求
option_education.unshift({"text": "学历不限", "value": ''});
education = $("#education ").select({
    optionData:option_education,//菜单选项数据
    callback:function(val,text){
        var exl="?";
        if(education_url.indexOf("?") > 0 ){
            exl='&';
        }
        location.href=education_url+exl+'education='+val;
    }//选择后的动作
});
function boxoption(othis,url,name,val){
    var exl="?";
    if(url.indexOf("?") > 0 ){
        exl='&';
    }

    if($(othis).attr('checked')=='checked'){
        location.href=url+exl+name+'='+val;
    }else{
        location.href=url+exl;
    }
}
//应届生
$("#graduate").click(function(){
    boxoption(this,work_year_url,'work_year','9');
})
//急聘
$("#anxious").click(function(){
    boxoption(this,anxious_url,'anxious','1');
})
//名企
$("#brandcompany").click(function(){
    boxoption(this,brandcompany_url,'brandcompany','1');
})
